package com.chengyu.eyc.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.chengyu.eyc.utils.EycGenId;

import tk.mybatis.mapper.annotation.KeySql;

@Table(name = "eyc_vehicle_av_item")
public class EycVehicleAvItem extends BaseModel implements Serializable {
    private static final long serialVersionUID = 1L;

    @KeySql(genId = EycGenId.class)
    @Id
    @Column(name = "AV_MORE_PARM_ID")
    private String avMoreParmId;

    /**
     * 主评估记录
     */
    @Column(name = "VEHICLE_AV_ID")
    private String vehicleAvId;

    /**
     * 参数
     */
    @Column(name = "PARM_ID")
    private String parmId;

    /**
     * 值
     */
    @Column(name = "VALUE")
    private String value;

    /**
     * @return AV_MORE_PARM_ID
     */
    public String getAvMoreParmId() {
        return avMoreParmId;
    }

    /**
     * 获取参数
     *
     * @return PARM_ID - 参数
     */
    public String getParmId() {
        return parmId;
    }

    /**
     * 获取值
     *
     * @return VALUE - 值
     */
    public String getValue() {
        return value;
    }

    /**
     * 获取主评估记录
     *
     * @return VEHICLE_AV_ID - 主评估记录
     */
    public String getVehicleAvId() {
        return vehicleAvId;
    }

    /**
     * @param avMoreParmId
     */
    public void setAvMoreParmId(String avMoreParmId) {
        this.avMoreParmId = avMoreParmId == null ? null : avMoreParmId.trim();
    }

    /**
     * 设置参数
     *
     * @param parmId 参数
     */
    public void setParmId(String parmId) {
        this.parmId = parmId == null ? null : parmId.trim();
    }

    /**
     * 设置值
     *
     * @param value 值
     */
    public void setValue(String value) {
        this.value = value == null ? null : value.trim();
    }

    /**
     * 设置主评估记录
     *
     * @param vehicleAvId 主评估记录
     */
    public void setVehicleAvId(String vehicleAvId) {
        this.vehicleAvId = vehicleAvId == null ? null : vehicleAvId.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", avMoreParmId=").append(avMoreParmId);
        sb.append(", vehicleAvId=").append(vehicleAvId);
        sb.append(", parmId=").append(parmId);
        sb.append(", value=").append(value);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}